<?php

namespace App\Models;

use App\Libs\DataFormat;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class News extends Model
{

    use DataFormat;

    protected $table = 'news';
    protected $dates = [''];

    protected $guarded = ['id', 'created_at'];

    public static  $formatKey = ['id'=>'int', 'title'=>'string', 'photo'=>'image_url', 'content'=>'string', 'publish_time'=>'string', ];

}
